package com.cjh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjh.pojo.Goods;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cjh
 * @since 2020-12-17
 */
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {

    List<Goods> selectGoodsPaging(Goods goods);

    Goods getGoods(Integer id);

    Integer getGoodsCountByTypeName(String typeName);
}
